﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Lenovo.CFI.Common
{
    public class IdeaHis
    {
        public IdeaHis()
        {
        }

        public IdeaHis(int hisID)
        {
            this.hisID = hisID;
        }

        #region fields

        private int hisID;
        private string log;
        private int ideaID;
        private int topicID;
        private int no;
        private string title;
        private string type;
        private string relatedTypeText;
        private string keywordsText;
        private string freewordsText;
        private string backgroud;
        private string description;
        private string values;
        private Guid? pptFileID;
        private Guid? pic1FileID;
        private Guid? pic2FileID;
        private Guid? pic3FileID;
        private string owner;
        private int teamID;
        private string teamManager;
        private string teamVP;
        private string approver;
        private string approverComment;

        #endregion

        #region properities

        public int HisID
        {
            get { return hisID; }
            set { hisID = value; }
        }

        public string Log
        {
            get { return log; }
            set { log = value; }
        }

        public int IdeaID
        {
            get { return ideaID; }
            set { ideaID = value; }
        }

        /// <summary>
        /// 提交时对应的Topic
        /// </summary>
        public int TopicID
        {
            get { return topicID; }
            set { topicID = value; }
        }

        /// <summary>
        /// 编号 -- 时间表确定后按顺序生成
        /// </summary>
        public int No
        {
            get { return no; }
            set { no = value; }
        }

        public string Title
        {
            get { return title; }
            set { title = value; }
        }

        /// <summary>
        /// 申请时的类型
        /// </summary>
        public string Type
        {
            get { return type; }
            set { type = value; }
        }


        public string RelatedTypeText
        {
            get { return relatedTypeText; }
            set { relatedTypeText = value; }
        }



        public string KeywordsText
        {
            get { return keywordsText; }
            set { keywordsText = value; }
        }


        public string FreewordsText
        {
            get { return freewordsText; }
            set { freewordsText = value; }
        }

        public string Backgroud
        {
            get { return backgroud; }
            set { backgroud = value; }
        }

        public string Description
        {
            get { return description; }
            set { description = value; }
        }

        public string Values
        {
            get { return values; }
            set { values = value; }
        }

        public Guid? PptFileID
        {
            get { return pptFileID; }
            set { pptFileID = value; }
        }

        public Guid? Pic1FileID
        {
            get { return pic1FileID; }
            set { pic1FileID = value; }
        }

        public Guid? Pic2FileID
        {
            get { return pic2FileID; }
            set { pic2FileID = value; }
        }

        public Guid? Pic3FileID
        {
            get { return pic3FileID; }
            set { pic3FileID = value; }
        }

        public string Owner
        {
            get { return owner; }
            set { owner = value; }
        }

        /// <summary>
        /// 申请时Owner所在的Team
        /// </summary>
        public int TeamID
        {
            get { return teamID; }
            set { teamID = value; }
        }

        /// <summary>
        /// 申请时Owner所在的Team的Manager
        /// </summary>
        public string TeamManager
        {
            get { return teamManager; }
            set { teamManager = value; }
        }

        /// <summary>
        /// 申请时Owner所在的Team的VP
        /// </summary>
        public string TeamVP
        {
            get { return teamVP; }
            set { teamVP = value; }
        }

        /// <summary>
        /// 申请审批人，无表示无需要审批
        /// </summary>
        public string Approver
        {
            get { return approver; }
            set { approver = value; }
        }

        /// <summary>
        /// 申请审批人意见
        /// </summary>
        public string ApproverComment
        {
            get { return approverComment; }
            set { approverComment = value; }
        }

        #endregion
    }
}
